import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

import {uploadUrl} from "/@/api/common/api";
import {useMethods} from "/@/hooks/system/useMethods";

const { createConfirm } = useMessage();
const { handleExportXls, handleImportXls } = useMethods();
enum Api {
  list = '/reconciliation/insuranceStatistics/qudaoshang/list',
  exportXls = '/reconciliation/insuranceStatistics/qudaoshang/exportXls',
  loadCode = '/reconciliation/insuranceStatistics/loadCode',
}

/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;

/**
 * 导入api
 */
export const getImportUrl = Api.importExcel;

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });
export const loadCode = (params) => defHttp.post({ url: Api.loadCode, params });
